<%@page import="com.sbl.bajw.common.web.RequestUnit"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@include file="../../common/prama.jsp" %>
    <%
    List<HashMap<String,Object>> CameraClassDict = (List<HashMap<String,Object>>)request.getAttribute("CameraClassDict");
    List<HashMap<String,Object>> CameraDirectionDict = (List<HashMap<String,Object>>)request.getAttribute("CameraDirectionDict");
    List<HashMap<String,Object>> CameraPlaceDict = (List<HashMap<String,Object>>)request.getAttribute("CameraPlaceDict");
    List<HashMap<String,Object>> CameraTimeDict = (List<HashMap<String,Object>>)request.getAttribute("CameraTimeDict");
    List<HashMap<String,Object>> CameraTypeDict = (List<HashMap<String,Object>>)request.getAttribute("CameraTypeDict");
    List<HashMap<String,Object>> CameraYunyingshangDict = (List<HashMap<String,Object>>)request.getAttribute("CameraYunyingshangDict");
    String camerahouseid = RequestUnit.getString("camerahouseid");
    camerahouseid = camerahouseid == null?"":camerahouseid;
    %>
<script type="text/javascript" src="${burl }/js/business/manager/CameraList.js"></script>
<div class="CommonPanel" id="msg_search_div">
	<table>
		<tr>
			<td class="label">摄像头类型：</td>
			<td class="input">
				<select name="class">
					<option value="">--选择--</option>
					<%
						for(int i =0;i<CameraClassDict.size();i++){
							HashMap<String,Object> row = CameraClassDict.get(i);
							String id = row.get("ID")+"";
							String name = row.get("NAME")+"";
					%>
					<option value="<%=id%>"><%=name %></option>
					<%
						}
					%>
				</select>
			</td>
			<td class="label">摄像头方向：</td>
			<td class="input">
				<select name="direction">
					<option value="">--选择--</option>
					<%
						for(int i =0;i<CameraDirectionDict.size();i++){
							HashMap<String,Object> row = CameraDirectionDict.get(i);
							String id = row.get("ID")+"";
							String name = row.get("NAME")+"";
					%>
					<option value="<%=id%>"><%=name %></option>
					<%
						}
					%>
				</select>
			</td>
			<td class="label">摄像保存时间：</td>
			<td class="input">
				<select name="time">
					<option value="">--选择--</option>
					<%
						for(int i =0;i<CameraTimeDict.size();i++){
							HashMap<String,Object> row = CameraTimeDict.get(i);
							String id = row.get("ID")+"";
							String name = row.get("NAME")+"";
					%>
					<option value="<%=id%>"><%=name %></option>
					<%
						}
					%>
				</select>
			</td>
			<td class="label">摄像头类别：</td>
			<td class="input">
				<select name="type">
					<option value="">--选择--</option>
					<%
						for(int i =0;i<CameraTypeDict.size();i++){
							HashMap<String,Object> row = CameraTypeDict.get(i);
							String id = row.get("ID")+"";
							String name = row.get("NAME")+"";
					%>
					<option value="<%=id%>"><%=name %></option>
					<%
						}
					%>
				</select>
			</td>
		</tr>
		<tr>
			<td class="label">审核人：</td>
			<td class="input">
				<input name="auditname@like"/>
			</td>
			<td class="label">摄像头场所：</td>
			<td class="input">
				<select name="place">
					<option value="">--选择--</option>
					<%
						for(int i =0;i<CameraPlaceDict.size();i++){
							HashMap<String,Object> row = CameraPlaceDict.get(i);
							String id = row.get("ID")+"";
							String name = row.get("NAME")+"";
					%>
					<option value="<%=id%>"><%=name %></option>
					<%
						}
					%>
				</select>
			</td>
			<td class="label">基站运营商：</td>
			<td class="input">
				<select name="yunyingshang">
					<option value="">--选择--</option>
					<%
						for(int i =0;i<CameraYunyingshangDict.size();i++){
							HashMap<String,Object> row = CameraYunyingshangDict.get(i);
							String id = row.get("ID")+"";
							String name = row.get("NAME")+"";
					%>
					<option value="<%=id%>"><%=name %></option>
					<%
						}
					%>
				</select>
			</td>
			<td class="label">审核状态：</td>
			<td class="input">
				<select name="status">
					<option value="">-请选择-</option>
					<option value="0">未审核</option>
					<option value="1">审核通过</option>
					<option value="-1">审核不通过</option>
				</select>
			</td>
		</tr>
		<tr>
			<td class="label">采集人：</td>
			<td class="input">
				<input name="username@like"/>
			</td>
			<td class="label">采集人账号：</td>
			<td class="input">
				<input name="userno@like"/>
			</td>
			<td class="label">采集人身份证号：</td>
			<td class="input">
				<input name="cardno@like"/>
			</td>
			<td class="label">采集地址：</td>
			<td class="input">
				<input name="cameraaddress@like"/>
			</td>
		</tr>
		<tr>
			<td class="label">采集人单位：</td>
			<td class="input" colspan="3">
				<select id="createrpcs" name="createrpcs"><option value="">--请选择--</option></select>
				<select id="createrjq" name="createrjq"><option value="">--请选择--</option></select>
			</td>
			<td class="label">数据所属单位：</td>
			<td class="input" colspan="3">
				<select id="datapcs" name="datapcs"><option value="">--请选择--</option></select>
				<select id="datajq" name="datajq"><option value="">--请选择--</option></select>
			</td>
		</tr>
		<tr>
			<td class="label">采集时间：</td>
			<td class="input" colspan="3">
				<input dataType='date' name="start_date" id="start_date"/>&nbsp;~&nbsp;<input dataType='date' name="stop_date" id="stop_date"/>
			</td>
			<td class="label">审核时间：</td>
			<td class="input" colspan="3">
				<input dataType='date' name="audittime_start" id="audittime_start"/>&nbsp;~&nbsp;<input dataType='date' name="audittime_stop" id="audittime_stop"/>
				<input name="camerahouseid" type="hidden" value="<%=camerahouseid%>"/>
			</td>
		</tr>
		<tr>
			<td class="label">安装时间：</td>
			<td class="input" colspan="3">
				<input dataType='date' name="install_date_s" id="install_date_s"/>&nbsp;~&nbsp;<input dataType='date' name="install_date_e" id="install_date_e"/>
			</td>
		</tr>
		<tr>
			<td class="label" colspan="8" style="text-align: right;">
				<a href="#" id="EasySearch">简单搜索</a>
				<button id="SearchBtn">查询</button>
				<button id="DownloadBtn">导出</button>
			</td>
		</tr>
	</table>
</div>
<input id="parentMenu" type="hidden" value="/Camera/easyList.do"/>
<div style="color: #4C42E2;background-color: #CBCBCB;line-height: 30px;font-weight: bold;">
	<table width="100%">
		<tr>
			<td id="camera_statistics_online" style="width: 80%;"></td>
			<td style="text-align: right;"><button id="mapViewBtn" class="commonBtn">地图展示</button></td>
		</tr>
	</table>
</div>
<div style="margin-bottom: 10px">
	<span style="font-size: 13px;font-weight: bold;color: rgb(119, 108, 108);">图例：</span>
	<span style="padding: 2px;background-color: rgb(170, 239, 136);border:0px" tag="pass" class="commonBtn">&nbsp;&nbsp;</span><span style="font-size: 13px;color: rgb(68, 65, 65)">审核通过</span>&nbsp;
	<span style="padding: 2px;background-color:rgb(169, 170, 231);border:0px" tag="uncheck" class="commonBtn">&nbsp;&nbsp;</span><span style="font-size: 13px;color: rgb(68, 65, 65)">未审核</span>&nbsp;
	<span style="padding: 2px;background-color:rgb(232, 75, 93);border:0px" tag="unpass" class="commonBtn">&nbsp;&nbsp;</span><span style="font-size: 13px;color: rgb(68, 65, 65)">审核不通过</span>&nbsp;
</div>
<div id="cameraGrid"></div>